package com.google.code.ojar.sendtemplatemail.report;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.google.code.ojar.sendtemplatemail.app.dto.NotSendMail;
import com.google.code.ojar.sendtemplatemail.app.utils.SendMailUtils;

public final class SendManuallyReporter {

	private static final Logger logger = LoggerFactory.getLogger(SendMailUtils.class);
	
	public static void generateMauallyNotSendMail(NotSendMail mail,Exception e){
		if(e != null){
			logger.info("_____________________________");
			logger.info("MAIL NOT RESENDED|EXCEPTION|"+mail.getMailBean().toString());
			logger.info("Exception: "+e);
			logger.info("_____________________________");
		}else{
			logger.info("_____________________________");
			logger.info("MAIL NOT RESENDED|RETRY POLICY|"+mail.getMailBean().toString());
			logger.info("_____________________________");
		}
		
	}
	/**
	 * private constructor
	 * 
	 */
	private SendManuallyReporter(){
		
	}
}
